using UnityEngine;
// [Assembly-CSharp.dll].Adjustment
public class Adjustment : MonoBehaviour
{
    // Fields
    public float characterFriction;
    public float characterBounciness;
    public float characterScale;
    public float characterMass;
    public float targetFriction;
    public float targetBounciness;
    public float targetScale;
    public float greenObstacleFriction;
    public float greenObstacleBounciness;
    public float yellowObstacleFriction;
    public float yellowObstacleBounciness;
    public float yellowObstacleMass;
    public float yellowAngularDrag;
    public float lineFriction;
    public float lineBounciness;
    public float lineThickness;
    public float lineMass;
    public UnityEngine.PhysicsMaterial2D characterPhysicsMaterial2D;
    public UnityEngine.PhysicsMaterial2D targetPhysicsMaterial2D;
    public UnityEngine.PhysicsMaterial2D greenObstaclePhysicsMaterial2D;
    public UnityEngine.PhysicsMaterial2D yellowObstaclePhysicsMaterial2D;
    public UnityEngine.PhysicsMaterial2D linePhysicsMaterial2D;
    public DrawingManager drawingManager;
    public static Adjustment instance;
    
    // Methods
    private void Awake()
    {
        mem2[0] = this;
    }
    private void Start()
    {
        this.setConfigure();
    }
    private void Update()
    {
        if(UnityEngine.Application.isEditor == false)
        {
                return;
        }
        
        this.setConfigure();
    }
    private void setConfigure()
    {
        this.characterPhysicsMaterial2D.friction = this.characterFriction;
        this.characterPhysicsMaterial2D.bounciness = this.characterBounciness;
        this.targetPhysicsMaterial2D.friction = this.targetFriction;
        this.targetPhysicsMaterial2D.bounciness = this.targetBounciness;
        this.greenObstaclePhysicsMaterial2D.friction = this.greenObstacleFriction;
        this.greenObstaclePhysicsMaterial2D.bounciness = this.greenObstacleBounciness;
        this.yellowObstaclePhysicsMaterial2D.friction = this.yellowObstacleFriction;
        this.yellowObstaclePhysicsMaterial2D.bounciness = this.yellowObstacleBounciness;
        this.linePhysicsMaterial2D.friction = this.lineFriction;
        this.linePhysicsMaterial2D.bounciness = this.lineBounciness;
        this.drawingManager.widthStart = this.lineThickness;
        this.drawingManager.widthEnd = this.lineThickness;
        this.drawingManager.massScale = this.lineMass;
    }
    public Adjustment()
    {
    
    }

}
